<template>
  <div class="set_box">
    <Header />
    <!--  -->
    <div class="show_box">
      <div class="show">
        <div class="left_box"><span>更改绑定手机号</span></div>
        <div class="right_box">
          <span>{{ this.mobile }} </span>
          <van-icon name="arrow" />
        </div>
      </div>
    </div>

    <div class="show_box">
      <div class="show">
        <div class="left_box"><span>设置密码</span></div>
        <div class="right_box">
          <span></span>
          <van-icon name="arrow" />
        </div>
      </div>
    </div>

    <div class="show_box">
      <div class="show">
        <div class="left_box"><span>关于我们</span></div>
        <div class="right_box">
          <span></span>
          <van-icon name="arrow" />
        </div>
      </div>
    </div>

    <div class="show_box">
      <div class="show">
        <div class="left_box"><span>上课短信通知</span></div>
        <div class="right_box">
          <span>
            <van-switch
              v-model="checked"
              active-color="#F18D00"
              inactive-color="#dcdee0"
            />
          </span>
        </div>
      </div>
    </div>
    <div class="button">
      <span @click="onClickRemove">退出登录</span>
    </div>
  </div>
</template>

<script>
import Header from "../../components/header/header";
export default {
  data() {
    return {
      checked: true,
      mobile: this.$store.state.mobiles,
    };
  },
  components: {
    Header,
  },
  methods: {
    onClickRemove() {
      sessionStorage.removeItem("token");
      this.$router.push({ path: "/personal" });
    },
  },
};
</script>

<style lang="scss" scoped>
.set_box {
  width: 100vw;
  height: 100vh;
  //   background-color: #f4f4f4;
  .show_box {
    width: 100%;
    height: 0.8rem;
    // background-color: #fff;
    .show {
      width: 90%;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgb(230, 228, 228);
      margin-top: 5px;
    }
    .left_box {
      width: 40%;
      height: 100%;
      //   background-color: skyblue;
      font-size: 18px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .right_box {
      width: 40%;
      height: 100%;
      //   background-color: pink;
      font-size: 18px;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      span {
        color: rgb(151, 148, 148);
      }
      i {
        color: rgb(151, 148, 148);
      }
    }
  }
}
.button {
  width: 90%;
  height: 40px;
  border: 1px solid orange;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: orange;
  border-radius: 5px;
  margin: 100px auto 0px;
}
</style>